<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ page
	import="com.gmail.avereshchaga.web.controller.EmployeeController"%>
<%@ page import="static com.gmail.avereshchaga.tools.UrlList.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><c:out value="${model.employee.firstName}" /> <c:out
		value="${model.employee.lastName}" /></title>
</head>
<body>
        <table class="loctable">
            <tr><td valign="top">
            <%@ include file="login.jsp"%> <c:out
					value="${model.employee.firstName}" /> <c:out
					value="${model.employee.lastName}" /><br /> <br />
				<table>
					<tr>
						<td><spring:message code="label.firstName" />:</td>
						<td><c:out value="${model.employee.firstName}" /></td>
					</tr>
					<tr>
						<td><spring:message code="label.lastName" />:</td>
						<td><c:out value="${model.employee.lastName}" /></td>
					</tr>
					<tr>
						<td><spring:message code="label.salary" />:</td>
						<td><c:out value="${model.employee.salary}" /></td>
					</tr>
					<tr>
						<td><spring:message code="label.birthdate" />:</td>
						<td><c:out value="${model.birthdateStr}" /></td>
					</tr>
					<tr>
						<td><spring:message code="label.active" />:</td>
						<td><c:choose>
								<c:when test="${model.employee.active=='true'}">
									<spring:message code="label.active.true" />
								</c:when>
								<c:when test="${model.employee.active=='false'}">
									<spring:message code="label.active.false" />
								</c:when>
							</c:choose>
                        </td>
					</tr>
					<tr>
						<td><spring:message code="label.division" />:</td>
						<td><c:out value="${model.division.name}" /></td>
					</tr>
				</table>
				<input onclick="history.back(-1)" value="<spring:message code="label.back"/>" type="button">
            </td>
		</tr>
	</table>
</body>
</html>